package br.fbc.util;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class PropertiesLoader {

    private Properties props;
    private String nomeDoProperties = "qrcode.properties";

    protected PropertiesLoader(String path) {
            props = new Properties();
            //InputStream in = this.getClass().getResourceAsStream(path+nomeDoProperties);
            
            FileReader reader;
			try {
				reader = new FileReader( new File(path+nomeDoProperties));
			
                    props.load(reader);
                    reader.close();
            }catch(IOException e){
            	e.printStackTrace();
			
			}
    }
    protected String getValor(String chave){
            return (String)props.getProperty(chave);
    }
}